package cn.itcast.user.service;


import cn.itcast.user.domain.User;
import cn.itcast.user.domain.UserService;
import cn.itcast.user.mapper.UserMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class UserServiceImpl1 implements UserService {

    @Autowired
    private UserMapper userMapper;

    //根据id查询用户名称
    public String queryUsername(Long id) {
        return userMapper.findById(id).getUsername();
    }


    @Override
    public User queryById(Long id) {
        return null;
    }
}
